home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
001-025
/
scopedisk10
/
ren
/
ren.doc
< prev
next >
Wrap
Internet Message Format
|
1995-03-18
|
4KB
Date: 16 May 88 22:34:56 GMT
REN
An Amiga Font Renaming Utility
Copyright 1988 By Stephen Vermeulen
3635 Utah Dr. N.W.
Calgary, Alberta,
CANADA, T2N 4A6
(403) 282-7990
-----------------------------------------
This program may be freely redistributed,
so long as this file is distributed with
the program and the Copyright notice in
the program remains intact.
-----------------------------------------
Introduction:
REN is a CLI based utility program for the Amiga that exploits
a little understood feature of the Amiga Font System to allow
the font data files to be placed elsewhere than in the default
FONTS: directory. This capability even allows fonts to be spread
across several disks. There are several advantages to doing this:
much needed space is freed up on the boot disk, many more fonts
may be on line at once, the number of fonts is not restricted by
the size of a single disk media, and the font directory scans
faster.
Syntax:
The syntax of REN is quite simple:
REN filename.font newpath
where
filename.font is the COMPLETE path to a ".font" file that needs
changing, and
newpath is the new path to the font data, this may be
relative to FONTS: (eg. Garnet) or may be
absolute (eg. Font_1:Garnet).
Examples:
To change the working name of the Garnet family of fonts to another
name (let's use Xyzzy) several things must be done. The following
is the complete list of things that must be done:
rename FONTS:Garnet FONTS:Xyzzy
rename FONTS:Garnet.font FONTS:Xyzzy.font
ren FONTS:Xyzzy.font Xyzzy
This will just change the name of the Garnet font to be the Xyzzy
font. In order to put the data files that describe the characters
of the Garnet font somewhere else (eg. on a disk named Font_1:)
the following commands are used:
makedir Font_1:Garnet
copy FONTS:Garnet Font_1:Garnet all
delete FONTS:Garnet all
ren FONTS:Garnet.font Font_1:Garnet
Now, whenever a program tries to open the Garnet font to use it
the system will search through the FONTS: directory to find
the Garnet.font file. It will then look in this file to find out
where the actual font data is stored. This data is now on another
disk named Font_1: (note that the FONTS: directory would normally
be assigned to a completly different disk, normally the boot disk).
If the disk Font_1: is not in a disk drive a standard system
requester will appear asking you to insert the Font_1: disk into
a drive.
It should now be clear that the ONLY files that must be in the
FONTS: directory are the filename.font files, since these files
are used to locate the font data files. The great benefit this
provides is of almost entirely removing the limit to the number of
fonts that may be accessed at any one time that the size of disk
media imposes. The filename.font files are very small so that
even on a crowded boot disk there is usually room for many of these
if the font data files can be moved elsewhere.
More Background:
A note to beginners, the font data files are the files that are
named by a number which indicates the height of the font. For
example doing a:
dir FONTS:
will produce a list of files with the ".font" suffix as well as a
list of directories. The directories are where the system usually
stores the font data files. To see the various data files for the
Garnet font do a:
dir FONTS:Garnet
This should list two files: 9 and 16. The file that is named
"Garnet.font" in the FONTS: directory tells the system where
to find the data files (the 9 and 16 files) that contain the
bit patterns for the Garnet font. The REN utility works its
magic by exploiting a feature of the ".font" files that has
not been used until now.